package edu.hawaii.duedates;

/**
 * Defines a generic borrowed item and a generic method of printing its contents and due date.
 * 
 * @author Aric West
 * @author Daniel Tian
 * 
 */
public class BorrowedItem {
  private final String itemName;
  private final String dueDate;

  /**
   * Constructor.
   * 
   * @param name The name of the borrowed item.
   * @param dueDate The date the borrowed item is due.
   */
  public BorrowedItem(String name, String dueDate) {
    this.itemName = name;
    this.dueDate = dueDate;
  }

  /**
   * Prints out the information contained in this object to the terminal.
   * @return the string with the due date and name of the item
   */
  public String toString() {
    return ("Due: " + dueDate + " | " + itemName);
  }
}
